package com.hooper.hosp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hooper.hosp.model.hosp.HospitalSet;
import com.hooper.hosp.vo.order.SignInfoVo;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/09/24/13:42
 */
public interface HospitalSetService extends IService<HospitalSet> {
    /**
     * lock or unlock the hosp
     * @param id     hosp setting id
     * @param status status: 1 unlocked , 0 locked
     * @return
     */
    boolean lockOrUnlock(Long id, Integer status);

    boolean saveOne(HospitalSet hospitalSet);

    boolean updateOneById(HospitalSet newSet);

    String getSignKeyByHoscode(String hoscode);

    SignInfoVo getSignInfoVo(String hoscode);
}

